<!--
 * @Author: 孙开源 && sunkaiyuan@namenode.cn
 * @Date: 2023-08-30 09:45:48
 * @LastEditors: 孙开源 && sunkaiyuan@namenode.cn
 * @LastEditTime: 2023-08-30 10:31:00
 * @Description: 
 * 
-->
<template>
  <el-dialog  draggable overflow  :title="'对样'" v-model="visible" :width="300" destroy-on-close @closed="$emit('closed')">
    <el-tabs type="border-card">
      <el-tab-pane ref="tab" label="基础信息">
        <sc-VxeTable ref="xGrid1" :gridOps="gridOps" :data="details" :tablecode="'pro_pot_verify_list'">
        </sc-VxeTable>
      </el-tab-pane>
    </el-tabs>
    <template #footer>
      <el-button @click="visible = false">关 闭</el-button>
    </template>
  </el-dialog>
</template>
<script>
export default {
  emits: ["success", "closed"],
  components: {},
  data() {
    return {
      gridOps: {
        height: 300
      },
      details: [],
      visible: false,
    };
  },

  methods: {
    //显示
    open() {
      this.visible = true;
      return this;
    },
    async getItems(id) {
      var res = await this.$API.pro.pot.verifyList.get({ pro_pot_id: id });
      if (res.code == 200) {
        this.details = res.data;
      }
    },

    //表单注入数据
    setData(data) {
      this.getItems(data.id);
      return this;
    },
  },
};
</script>

<style></style>
